package day16.pack9;

import day16.pack8.Clazz;
import lombok.SneakyThrows;

import java.io.*;

public class Test {
    @SneakyThrows
    public static void main(String[] args) {
        // 反序列化
        File file = new File("d:\\games.data");
        InputStream is = new FileInputStream(file);
        try (ObjectInputStream ois = new ObjectInputStream(is)) {
            Clazz clazz = (Clazz) ois.readObject();
            System.out.println(clazz);
            System.out.println(Clazz.CLAZZ_TYPE);
        }
    }
}
